common/board_f.c: fix compile error when tracing disabled
authorKevin Hilman <[email protected]>
Tue, 9 Dec 2014 23:03:58 +0000 (15:03 -0800)
committerTom Rini <[email protected]>
Mon, 29 Dec 2014 21:31:23 +0000 (16:31 -0500)
When CONFIG_TRACE is disabled, linking fails with:

common/built-in.o:(.data.init_sequence_f+0x8): undefined reference to `trace_early_init'

To fix, wrap the call to trace_early_init() with #ifdef CONFIG_TRACE.

Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
common/board_f.c

index 98c9c728ce7358b5efd42c5fb50d51d6da94296b..cfd77f865361b53feb3a2945ba6a589a1e62417b 100644 (file)
@@ -813,7 +813,9 @@ static init_fnc_t init_sequence_f[] = {
 #endif
        setup_mon_len,
        setup_fdt,
+#ifdef CONFIG_TRACE
        trace_early_init,
+#endif
        initf_malloc,
 #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
        /* TODO: can this go into arch_cpu_init()? */